package com.chen.user.consumer.controller;

import com.chen.user.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebController {

    @Reference(version = "1.0.0")
    private DemoService demoService;

    @GetMapping("/test")
    public String say(){
        return demoService.sayHello("hhh");
    }
}
